package com.hj.security.service;

import java.util.Collection;
import java.util.LinkedHashMap;

import org.springframework.security.access.ConfigAttribute;
import org.springframework.security.web.util.RequestMatcher;

/**
 * RequestMap生成接口,由用户自行实现从数据库或其它地方查询URL-授权关系定义.
 * 
 */
public interface ResourceDetailsService {

	/**
	 * 返回带顺序的URL-授权关系Map, key为受保护的URL, value为能访问的URL列表.
	 */
	public LinkedHashMap<RequestMatcher, Collection<ConfigAttribute>> getRequestMap() throws Exception;
}
